using UnityEngine;
//using UnityEditor;
using System.Collections;

public class Camera : MonoBehaviour
{
	
	public Light Light;
	public Vector3 Offset;
	public Player Player;
	
	void Update()
	{
		Vector3 position = Offset;	
		position.z += Player.transform.position.z - Player.Offset.y;
		transform.position = position;
		
		//Light.color = EditorGUIUtility.HSVToRGB((position.z / 360.0f) % 1.0f, 1.0f, 1.0f);
	}
	
}